package org.javver.xmpp;

import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.ConnectionConfiguration;
import org.jivesoftware.smack.XMPPException;
import org.apache.log4j.Logger;

import javax.jms.ConnectionConsumer;

public class JavverConnection extends XMPPConnection {
    private static final Logger logger = Logger.getLogger(JavverConnection.class);

    public JavverConnection() {
        super(new ConnectionConfiguration(XMPPProperties.HOST, XMPPProperties.PORT));
    }

    public void login() throws XMPPException {
        login(XMPPProperties.USERNAME, XMPPProperties.PASSWORD);
    }
}
